package com.zx.jhpt.po;

import javax.persistence.Column;
import javax.persistence.Embeddable;


/**
 * FxDeptId entity. @author MyEclipse Persistence Tools
 */
@Embeddable

public class FxDeptId  implements java.io.Serializable {


    // Fields    

     private String dept;
     private String fxid;


    // Constructors

    /** default constructor */
    public FxDeptId() {
    }

    
    /** full constructor */
    public FxDeptId(String dept, String fxid) {
        this.dept = dept;
        this.fxid = fxid;
    }

   
    // Property accessors

    @Column(name="DEPT", nullable=false, length=64)

    public String getDept() {
        return this.dept;
    }
    
    public void setDept(String dept) {
        this.dept = dept;
    }

    @Column(name="FXID", nullable=false, length=64)

    public String getFxid() {
        return this.fxid;
    }
    
    public void setFxid(String fxid) {
        this.fxid = fxid;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FxDeptId) ) return false;
		 FxDeptId castOther = ( FxDeptId ) other; 
         
		 return ( (this.getDept()==castOther.getDept()) || ( this.getDept()!=null && castOther.getDept()!=null && this.getDept().equals(castOther.getDept()) ) )
 && ( (this.getFxid()==castOther.getFxid()) || ( this.getFxid()!=null && castOther.getFxid()!=null && this.getFxid().equals(castOther.getFxid()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getDept() == null ? 0 : this.getDept().hashCode() );
         result = 37 * result + ( getFxid() == null ? 0 : this.getFxid().hashCode() );
         return result;
   }   





}